package model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;


/**
 * The persistent class for the tag database table.
 * 
 */
@Entity
public class Tag implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int tagid;

	private String tagname;

	//bi-directional many-to-one association to TargetTag
	@OneToMany(mappedBy="tagBean")
	private Set<TargetTag> targetTags;

    public Tag() {
    }

	public int getTagid() {
		return this.tagid;
	}

	public void setTagid(int tagid) {
		this.tagid = tagid;
	}

	public String getTagname() {
		return this.tagname;
	}

	public void setTagname(String tagname) {
		this.tagname = tagname;
	}

	public Set<TargetTag> getTargetTags() {
		return this.targetTags;
	}

	public void setTargetTags(Set<TargetTag> targetTags) {
		this.targetTags = targetTags;
	}
	
}